﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartEP.Presenter;

namespace SmartDesktop
{
    public partial class Step11View : MedicalHistoryBaseView, IStep11View
    {
        public Step11View(PatientCarePresenter presenter)
            : base(presenter)
        {
            InitializeComponent();
            this.Name = "Registration Step 11";
            MainForm.BarCaption.Text = this.Name;

            this.step = 11;
            this.GroupStep = GroupStepType.MedicalHistory;
        }        

        #region Property
        public string BornFullTerm
        {
            get
            {
                return txtBornFullTerm.Text;
            }
            set
            {
                txtBornFullTerm.Text = value;
            }
        }

        public string BirthComplication
        {
            get
            {
                return txtComplication.Text;
            }
            set
            {
                txtComplication.Text = value;
            }
        }

        public string PerformingAtGradeLevel
        {
            get
            {
                return txtPerforming.Text;
            }
            set
            {
                txtPerforming.Text = value;
            }
        }
        #endregion

        private void btnContinue_Click(object sender, EventArgs e)
        {
            this.presenter.DisplayNextStep(this.step);
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.presenter.BackToPreviousStep(this.step);
        }

    }
}
